using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using Pacman.Simulator;

namespace Pacman.Implementations
{
	public class TestNeuralPac : BasePacman
	{
		public TestNeuralPac() : base("TestNeuralPac","1") { }

		private GameState gs;

		public override Direction Think(GameState gs) {
			this.gs = gs;
			return Direction.None;
		}

		public override void Draw(System.Drawing.Graphics g) {
			Prediction prediction = new Prediction(gs, 15);
			for( int x = 0; x < Map.Width; x++ ){
				for( int y = 0; y < Map.Height; y++ ){
					Node node = gs.Map.Nodes[x,y];
					if( node.Walkable ) {
						g.FillEllipse(new SolidBrush(Color.FromArgb(255, (int)(prediction.DangerMaps[15].Danger[x, y] * 255), 0, 0)), new Rectangle(new Point(node.CenterX, node.CenterY), new Size(8, 8)));
					}
				}
			}
		}
	}
}
